#slice2cs slice2py
dlldef = "NICEIAPI"
dllcmd = "--dll-export " + dlldef

outdir = "..\\nettranport"
outdircmd = "  --output-dir " +outdir

import os
try:
    os.mkdir(outdir)
except:
    pass
cmd = "slice2cpp  " +dllcmd + outdircmd

import glob
import os
items = glob.glob("*.ice")
for item in items:
    cmd = cmd + " " + item
    os.system(cmd)

os.system("pause")
